package consultan.vanke.com.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.amap.api.maps.AMap;
import com.amap.api.maps.MapView;

import butterknife.BindView;
import consultan.vanke.com.R;

public class MapFragment extends BaseFragment {

    @BindView(R.id.mapview)
    MapView mapview;
    AMap aMap;

    @Override
    protected void initViews() {

    }

    @Override
    protected void initDatas() {
        mapview.onCreate(null);
        if (aMap == null) {
            aMap = mapview.getMap();
            aMap.getUiSettings().setZoomControlsEnabled(false);
        }
    }

    @Override
    protected void initEvents() {
    }

    @Override
    protected View initContentView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
        return View.inflate(_mActivity, R.layout.map_fragment, null);
    }

}
